﻿<script type="text/javascript">
    @{
        var autoRun = ViewBag.SubPath == null;
        if (ViewBag.Print != null && ViewBag.Print)
        {
            if (autoRun)
            {
                @:CreatePrintViewerEx("100%", "99.5%", "@ViewBag.path", "@ViewBag.dataPath", true , "");
            }
            else
            {
                 @:CreatePrintViewerEx("100%", "99.5%", "@ViewBag.path", "@ViewBag.dataPath", false , "");
            }
                
        }
        else
        {
            if (autoRun)
            {
                @:CreateDisplayViewerEx("100%", "99.5%", "@ViewBag.path", "@ViewBag.dataPath", true , "");
            }
            else
            {
                 @:CreateDisplayViewerEx("100%", "99.5%", "@ViewBag.path", "@ViewBag.dataPath", false , "");
            }
        }
    }

</script>